﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace QuanLySieuThi.DTO
{
    public class CChungLoai
    {
        #region Attribute
        int _iMaChungLoai;
        string _strTenChungLoai;
        #endregion
        #region Properties

        public int MaChungLoai
        {
            get { return _iMaChungLoai; }
            set { _iMaChungLoai = value; }
        }
        public string TenChungLoai
        {
            get { return _strTenChungLoai; }
            set { _strTenChungLoai = value; }
        }

        #endregion
        public DataTable LoadChungLoai()
        {
            Help.CDataProvider dp = new Help.CDataProvider();
            dp.OpenConnect();
            string sql = "select TenChungLoai from ChungLoai";
            return dp.LoadDS(sql);
        }
    }
}
